package test.serverframe.armc.server.manager.domain.params;

import javax.validation.constraints.Size;

import com.microcore.entity.param.InvokeParams;

import io.swagger.annotations.ApiModelProperty;
import test.serverframe.armc.server.manager.domain.Tag;

import java.util.List;

/**  
* 
* @author yegui  
* @date 2018年12月15日  
*/
public class AddTaskInvokeParams extends InvokeParams {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("修改调度时使用")
	private String taskInvokeId;
	
	// 调度名称
    @ApiModelProperty("调度名称")
    private String invokeName;

    // 备注
    @Size(max = 200)
    @ApiModelProperty("备注")
    private String remark;
    
    @ApiModelProperty(value = "调度标签集合",required = false)
	private List<Tag> tags;
    
    @ApiModelProperty(value = "执行失败的策略（0：继续执行，1：停止执行，2：重新执行）")
    private String failedStrategy;
    
    @ApiModelProperty(value = "调度下的任务集合")
    private List<AddTaskEnterInvokeParams> taskRelateInvokes;
    
    @ApiModelProperty(value = "是否支持并发（false：不支持；true：支持）")
    private boolean isConcurrent;

	@ApiModelProperty(value = "调度执行计划数据")
	private  String executePlanData;
	
	@ApiModelProperty(value = "任务图数据")
	private String nodeArr;

	public String getExecutePlanData() {
		return executePlanData;
	}

	public void setExecutePlanData(String executePlanData) {
		this.executePlanData = executePlanData;
	}

	public String getTaskInvokeId() {
		return taskInvokeId;
	}

	public void setTaskInvokeId(String taskInvokeId) {
		this.taskInvokeId = taskInvokeId;
	}

	public List<Tag> getTags() {
		return tags;
	}

	public void setTags(List<Tag> tags) {
		this.tags = tags;
	}

	public String getInvokeName() {
		return invokeName;
	}

	public void setInvokeName(String invokeName) {
		this.invokeName = invokeName;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getFailedStrategy() {
		return failedStrategy;
	}

	public void setFailedStrategy(String failedStrategy) {
		this.failedStrategy = failedStrategy;
	}

	public List<AddTaskEnterInvokeParams> getTaskRelateInvokes() {
		return taskRelateInvokes;
	}

	public void setTaskRelateInvokes(List<AddTaskEnterInvokeParams> taskRelateInvokes) {
		this.taskRelateInvokes = taskRelateInvokes;
	}

	public boolean isConcurrent() {
		return isConcurrent;
	}

	public void setConcurrent(boolean isConcurrent) {
		this.isConcurrent = isConcurrent;
	}

	public String getNodeArr() {
		return nodeArr;
	}

	public void setNodeArr(String nodeArr) {
		this.nodeArr = nodeArr;
	}

}
